import java.util.Scanner;

public class Chapter04 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int h = 0;
        while (h<3) {
            System.out.println("请输入直角三角形的高度：");
            h = input.nextInt();
        }
        for(int a = 1; a<=h;a++){
            for (int b = 1;b<=h-a;b++){
                System.out.print(" ");
            }
            for (int c = 1;c<=a;c++){
                System.out.print("*");
            }
            System.out.print("\n");
        }
    }
}
